
import Layout from '@/layout'
const warehouseRouter = {
  path: '/warehouse/list',
  component: Layout,
  name: 'warehouse-list',
  meta: {
    title: '油库',
    icon: 'warehouse',
    permissions: ['warehouse.query']
  },
  children: [
    {
      path: '/warehouse/list',
      component: () => import('@/views/warehouse/list'),
      name: 'warehouse-list',
      meta: {title: '油库管理', icon: 'warehouse'
        // ,permissions: ['warehouse.query']
      },
    },

    // 注册路由
    {
      path: '/warehouse/list',
      component: () => import('@/views/warehouse/list'),
      name: 'warehouse-list',
      meta: { title: '油库列表', icon: 'sub_warehouse'},
      hidden: true
    },
    {
      path: '/warehouse/add',
      component: () => import('@/views/warehouse/add'),
      name: 'warehouse-add',
      meta: { title: '新增油库', icon: 'sub_warehouse'},
      hidden: true
    },
    {
      path: '/warehouse/edit',
      component: () => import('@/views/warehouse/edit'),
      name: 'warehouse-edit',
      meta: { title: '修改油库', icon: 'sub_warehouse'},
      hidden: true
    },

    {
      path: '/warehouse/detail',
      component: () => import('@/views/warehouse/detail'),
      name: 'warehouse-detail',
      meta: { title: '油库详情', icon: ''},
      hidden: true
    },
  ]
}
export default warehouseRouter
